

<template>
  <div>
    <iframe :src="src" @load="load" ref="myIframe" width="100%" height="100%"></iframe>
  </div>
</template>
<script>
import service from "@/utils/request";

export default {
  name:'DataSource',
  data(){
    return{
      src:'/epris/pages/pgInterfaceDefine.html',
      URL:''
    }
  },
  mounted() {
    this.URL = service.defaults.baseURL
  },
  methods:{
    load(){
      this.$refs.myIframe.contentWindow.postMessage(this.URL)
    }
  }
}
</script>

<style lang="scss" scoped>
iframe{
  border: 0;
}
</style>